package edu.sctu.practice.class01.yangxu.assign2;

/**
 * Created by Administrator on 2015/10/8.
 */
public class Circle {

    private static final double R=3.14;

    public double getRadius() {
        return radius;
    }

    private double radius = 0; //半径

    public static int getNumOfObjects() {
        return numOfObjects;
    }


    private static int numOfObjects = 0;

    private double circleArea = 0;

    public Circle(double radius){

        this.radius = radius;
        numOfObjects ++;

    }
    public double printCircleArea(){

         circleArea = R*radius*radius;

        return circleArea;
    }



}
